added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSWF4Parallel / Workflow1.xaml
blob1515e86a6b346b4d9ea91e9d951bf28c441c0cb0
1 <Activity mc:Ignorable="sap" x:Class="CSWF4Parallel.Workflow1" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=System.Xml" xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sd="clr-namespace:System.Data;assembly=System.Data" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:st="clr-namespace:System.Text;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2     <Parallel sad:XamlDebuggerXmlReader.FileName="Workflow1.xaml" sap:VirtualizedContainerService.HintSize="772,523" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
3         <Parallel.Variables>
4             <Variable x:TypeArguments="s:Int32[]" Default="[{1, 2, 3}]" Name="numberArray" />
5         </Parallel.Variables>
6         <Sequence DisplayName="Sequence1" sap:VirtualizedContainerService.HintSize="309,477">
7             <sap:WorkflowViewStateService.ViewState>
8                 <scg3:Dictionary x:TypeArguments="x:String, x:Object">
9                     <x:Boolean x:Key="IsExpanded">True</x:Boolean>
10                 </scg3:Dictionary>
11             </sap:WorkflowViewStateService.ViewState>
12             <ForEach x:TypeArguments="x:Int32" sap:VirtualizedContainerService.HintSize="287,353" Values="[numberArray]">
13                 <ActivityAction x:TypeArguments="x:Int32">
14                     <ActivityAction.Argument>
15                         <DelegateInArgument x:TypeArguments="x:Int32" Name="item" />
16                     </ActivityAction.Argument>
17                     <Sequence sap:VirtualizedContainerService.HintSize="257,247">
18                         <sap:WorkflowViewStateService.ViewState>
19                             <scg3:Dictionary x:TypeArguments="x:String, x:Object">
20                                 <x:Boolean x:Key="IsExpanded">True</x:Boolean>
21                             </scg3:Dictionary>
22                         </sap:WorkflowViewStateService.ViewState>
23                         <WriteLine sap:VirtualizedContainerService.HintSize="211,61" Text="[&quot;Sequence1:&quot; + item.ToString]" />
24                         <Delay Duration="00:00:05" sap:VirtualizedContainerService.HintSize="211,22" />
25                     </Sequence>
26                 </ActivityAction>
27             </ForEach>
28         </Sequence>
29         <Sequence DisplayName="Sequence2" sap:VirtualizedContainerService.HintSize="309,477">
30             <sap:WorkflowViewStateService.ViewState>
31                 <scg3:Dictionary x:TypeArguments="x:String, x:Object">
32                     <x:Boolean x:Key="IsExpanded">True</x:Boolean>
33                 </scg3:Dictionary>
34             </sap:WorkflowViewStateService.ViewState>
35             <ParallelForEach x:TypeArguments="x:Int32" sap:VirtualizedContainerService.HintSize="287,353" Values="[numberArray]">
36                 <ActivityAction x:TypeArguments="x:Int32">
37                     <ActivityAction.Argument>
38                         <DelegateInArgument x:TypeArguments="x:Int32" Name="item" />
39                     </ActivityAction.Argument>
40                     <Sequence sap:VirtualizedContainerService.HintSize="257,247">
41                         <sap:WorkflowViewStateService.ViewState>
42                             <scg3:Dictionary x:TypeArguments="x:String, x:Object">
43                                 <x:Boolean x:Key="IsExpanded">True</x:Boolean>
44                             </scg3:Dictionary>
45                         </sap:WorkflowViewStateService.ViewState>
46                         <WriteLine sap:VirtualizedContainerService.HintSize="211,61" Text="[&quot;Sequence2:&quot; + item.ToString]" />
47                         <Delay Duration="00:00:05" sap:VirtualizedContainerService.HintSize="211,22" />
48                     </Sequence>
49                 </ActivityAction>
50             </ParallelForEach>
51         </Sequence>
52     </Parallel>
53 </Activity>